package com.miracle.system.mapper;

import com.miracle.system.domain.SysDictH;
import com.miracle.system.domain.SysDictL;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ：miracle.cui
 * @description：TODO
 * @date ：2020/8/11 9:53
 */
public interface SysDictLMapper {
    public List<SysDictL> selectDictLList(SysDictL dictL);

    public List<SysDictL> selectDictLByDictTypeId(Integer dictTypeId);

    public List<SysDictL> selectDictLByDictH(SysDictH dictH);

    public List<SysDictL> selectDictLByDictTypeCode(String dictTypeCode);

    public Integer deleteDictLByDictTypeIds(Integer[] dictTypeIds);

    public Integer deleteDictLByDictTypeIdAndNoDictL(@Param("dictTypeId") Integer dictTypeId,
                                                     @Param("dictLList") List<SysDictL> dictLList);

    public Integer batchInsertOrUpdateDictL(List<SysDictL> dictL);

    public Integer batchInsertDictL(List<SysDictL> dictLList);
}
